package cn.zhf.shop.service;

import cn.zhf.shop.entity.Message;
import cn.zhf.shop.entity.organization.Organization;
import cn.zhf.shop.entity.search.OrganizationSearch;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrganizationService {
    Message<?> deleteByPrimaryKey(Integer orgId);

    Message insert(Organization record);

    Message insertSelective(Organization record);

    Message<Organization> selectByPrimaryKey(Integer orgId);

    Message updateByPrimaryKeySelective(Organization record);

    Message updateByPrimaryKey(Organization record);

    Message<List<Organization>> selectAll();

    Message<List<Organization>> selectByOrgName(String orgName);
    Message<List<Organization>> selectByOrgType(String orgType);
    Message<List<Organization>> selectByHead(int head);

    Organization selectByPrimaryKey2(Integer orgId);

    List<Organization> selectAll2();

    List<Organization> selectByReferenceId(@Param("referenceId")Integer referenceId);

    Message<List<Organization>> selectByReferenceId1(@Param("referenceId")Integer referenceId);

    Message<List<Organization>> selectSearch1(String orgName,Integer orgType);

    Message<List<Organization>> selectSearch2(String str);

    Message mohuConditionSearch(OrganizationSearch c);
}

